<?php

/**
 * @Author: wuchenge
 * @Date:   2021-12-10 18:01:54
 * @Email: ligui0506@126.com
 * @Descript:
 */
namespace App\Requests\Admin;

use App\Requests\FormRequest;

class LoginRequest extends FormRequest
{
    public function rules()
    {
        return [
            'mobile'  => [
                'required',
            ],
            'captcha' => [
                'required',
            ],
        ];
    }

    public function messages()
    {
        return [
            'mobile.required'  => '100103',
            'captcha.required' => '100102',
        ];
    }

    /**
     * @var array
     */
    public $scene = [
        'admin.login.login' => ['mobile', 'captcha'],
    ];
}
